package com.ruoyi.merchant.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 活动对象 activity
 * 
 * @author ruoyi
 * @date 2025-07-11
 */
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    private Long aId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long mId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "下架时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date downTime;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 发布状态：0-未发布，1-已发布，2-已下架 */
    @Excel(name = "发布状态：0-未发布，1-已发布，2-已下架")
    private Long status;

    /** 审核状态：0-待审核，1-已通过，2-已拒绝 */
    @Excel(name = "审核状态：0-待审核，1-已通过，2-已拒绝")
    private Long auditStatus;

    /** 逻辑删除：1-已删除，0-未删除 */
    @Excel(name = "逻辑删除：1-已删除，0-未删除")
    private Long isDeleted;

    @Excel(name = "审核说明")
    private String auditExplanation;

    public void setaId(Long aId) 
    {
        this.aId = aId;
    }

    public Long getaId() 
    {
        return aId;
    }

    public void setmId(Long mId) 
    {
        this.mId = mId;
    }

    public Long getmId() 
    {
        return mId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }

    public Date getDownTime() {
        return downTime;
    }

    public void setDownTime(Date downTime) {
        this.downTime = downTime;
    }

    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setAuditStatus(Long auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public Long getAuditStatus() 
    {
        return auditStatus;
    }

    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    public String getAuditExplanation() {
        return auditExplanation;
    }

    public void setAuditExplanation(String auditExplanation) {
        this.auditExplanation = auditExplanation;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("aId", getaId())
            .append("mId", getmId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("publishTime", getPublishTime())
            .append("auditTime", getAuditTime())
            .append("downTime", getDownTime())
            .append("image", getImage())
            .append("status", getStatus())
            .append("auditStatus", getAuditStatus())
            .append("isDeleted", getIsDeleted())
            .append("auditExplanation", getAuditExplanation())
            .toString();
    }
}
